//
//  JSDSportTrackingLine.h
//  仿咕咚
//
//  Created by Abner on 16/11/10.
//  Copyright © 2016年 Abner. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MAMapKit/MAMapKit.h>
#import "JSDSportMAPolyline.h"
@interface JSDSportTrackingLine : NSObject

//起始点位置
@property (nonatomic, strong, readonly) CLLocation *startLocation;
@property(nonatomic,strong,readonly) CLLocation *endLocation;
//描述两点之间的折线
@property(nonatomic,strong) JSDSportMAPolyline* polyLine;
//速度
@property(nonatomic,assign) double speed;
/**
 起始点和结束点之间的时间差值，单位：秒
 */
@property (nonatomic, readonly) NSTimeInterval time;

/**
 起始点和结束点之间的距离，单位：公里
 */
@property (nonatomic, readonly) double distance;
//构造方法
- (instancetype)initWithStartLocation:(CLLocation *)startLocation endLocation:(CLLocation *)endLocation; 

@end
